
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
<head>          
            <link rel="canonical" href="http://blog.csdn.net/u010412719/article/details/72860193"/> 

 <meta http-equiv="Cache-Control" content="no-siteapp" /><link rel="alternate" media="handheld" href="#" />

    <meta name="shenma-site-verification" content="5a59773ab8077d4a62bf469ab966a63b_1497598848" /> 
       
    <title>github新建本地仓库并将代码提交到远程仓库 - wojiushimogui的博客 - CSDN博客</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="github新建本地仓库并将代码提交到远程仓库假设有一个工程需要提交到github相关仓库中，以前自己将工程代码提交到远程仓库都是这么干的，如下：1、在github上新建好仓库，假设仓库名为：gitRepo。2、使用命令git clone git@github.com:yourgithubID/gitRepo.git 克隆到本地相应的位置。3、然后将要上传的工程代码拷贝到本地的gitRepo仓库中4" />

    <meta name="keywords" content="github,本地仓库,远程仓库" />
    <script src="http://static.blog.csdn.net/scripts/blog_static_head.min.js" type="text/javascript"></script>


    <link rel="Stylesheet" type="text/css" href="http://static.blog.csdn.net/skin/skin-yellow/css/style.css?v=1.4" />

    

    <link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="/u010412719/rss/list" />
    <link rel="shortcut icon" href="http://c.csdnimg.cn/public/favicon.ico" />
    <link type="text/css" rel="stylesheet" href="http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/blue_black.css" />
 



    <link href="http://c.csdnimg.cn/blog/csdn_public_blog_detail.min.css" type="text/css" rel="stylesheet" />
     
         <link rel="stylesheet" href="http://static.blog.csdn.net/css/csdn_blog_detail.min.css" />

  


    <!-- 请置于所有广告位代码之前 --> 
            <script src="http://dup.baidustatic.com/js/ds.js"></script>

</head>


<body>
     
        <div class="tracking-ad" data-view="true" data-mod="ad_popu_72"  data-mtp="62" data-order="40" data-con="ad_content_2072" >
                     <script id="popuLayer_js_q" src="http://ads.csdn.net/js/popuLayer.js" defer="defer"  type="text/javascript"></script>
                <div id="layerd" style="position: fixed;bottom:0px;right:0px;line-height:0px;z-index:1000">
    	                <div class="J_close layer_close" style="display:;background-color:#efefef;padding:0px;color:#333;font:12px/24px Helvetica,Tahoma,Arial,sans-serif;text-align:right;">关闭</div><!-- 广告占位容器 -->
                    <div id="cpro_u2895327">
                        <!-- 投放代码 -->
                        <script src="http://dup.baidustatic.com/js/ds.js"></script>
                       <!-- 广告位：PC端-博客详情页右侧弹窗-300*250 -->
                            <script>
                                (function () {
                                    var s = "_" + Math.random().toString(36).slice(2);
                                    document.write('<div id="' + s + '"></div>');
                                    (window.slotbydup = window.slotbydup || []).push({
                                        id: '4740870',
                                        container: s,
                                        size: '300,250',
                                        display: 'inlay-fix'
                                    });
                                })();
                            </script>
                    </div></div>
                <script>  document.getElementById("popuLayer_js_q").onload = function () {
      var styObjd = styObj = { width: "300px", "height": parseInt(250) + 28 };
      window.CSDN.Layer.PopuLayer("#layerd", { storageName: "layerd", styleObj: styObjd, total: 50, expoire: 1000 * 60 });
  }</script>
            
     
        </div>

    <!-- 广告位开始 -->
        
    <!-- 广告位结束 -->

    
   
      <!--new top-->
    <script id="toolbar-tpl-scriptId" fixed="true" prod="blog" skin="black" src="http://c.csdnimg.cn/public/common/toolbar/js/html.js" type="text/javascript"></script>
     <!--new top-->
    <div id="container">
        <div id="header">
    <div class="header">
        <div id="blog_title">
            <h2>
                <a href="http://blog.csdn.net/u010412719">wojiushimogui的博客</a></h2>
            <h3>正在路上的编程学习者</h3>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
        
     
    </div>
</div>
<div id="navigator">
    <div class="navigator_bg">
    </div>
    <div class="navigator">
        <ul>           
                <li id="btnContents"><a href="http://blog.csdn.net/u010412719?viewmode=contents"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_mulu'])">
                    <img src="http://static.blog.csdn.net/images/ico_list.gif">目录视图</span></a></li>
                <li id="btnView"><a href="http://blog.csdn.net/u010412719?viewmode=list"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_zhaiyao'])">
                    <img src="http://static.blog.csdn.net/images/ico_summary.gif">摘要视图</span></a></li>
                <li id="btnRss"><a href="http://blog.csdn.net/u010412719/rss/list"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_RSS'])">
                    <img src="http://static.blog.csdn.net/images/ico_rss.gif">订阅</span></a></li>                   
            

            </ul>
    </div>
</div>
<script type="text/javascript">
    var username = "u010412719";
    var _blogger = username;
    var blog_address = "http://blog.csdn.net/u010412719";
    var static_host = "http://static.blog.csdn.net";
    var currentUserName = "";  
</script>

        <div id="body">
            <div id="main">
                <div class="main">
                        <div class="ad_class">
<div class="notice tracking-ad" data-mod='popu_3' > 

<a href="http://blog.csdn.net/turingbooks/article/details/78475571">
<font color=red><strong>图灵赠书——程序员11月书单</strong></font></a>

&nbsp;&nbsp;&nbsp;&nbsp


<a href="http://edu.csdn.net/topic/python2?utm_source=blog4">
<font color=blue><strong>【思考】Python这么厉害的原因竟然是！</strong></font></a>
&nbsp;&nbsp;&nbsp;&nbsp

<a 
href="http://blog.csdn.net/epubit17/article/details/78606519">
<font color=blue><strong>感恩节赠书：《深度学习》等异步社区优秀图书和作译者评选启动！</strong></font></a>

&nbsp;&nbsp;&nbsp;&nbsp


<a href="http://blog.csdn.net/broadview2006/article/details/78603363">
<font color=red><strong>每周荐书：京东架构、Linux内核、Python全栈</strong></font></a>



</div>                        </div>

                        



  






<script   type="text/javascript" src="http://static.blog.csdn.net/scripts/category.js"></script>

  <script type="text/ecmascript">
      window.quickReplyflag = true;
      var isBole = false; 
      var fasrc="http://my.csdn.net/my/favorite/miniadd?t=github%e6%96%b0%e5%bb%ba%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93%e5%b9%b6%e5%b0%86%e4%bb%a3%e7%a0%81%e6%8f%90%e4%ba%a4%e5%88%b0%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93&u=http://blog.csdn.net/u010412719/article/details/72860193"
    </script>
<div id="article_details" class="details">
    <div class="article_title">   
         <span class="ico ico_type_Original"></span>

    <h1>
        <span class="link_title"><a href="/u010412719/article/details/72860193">
        github新建本地仓库并将代码提交到远程仓库        
           
        </a>
        </span>

         
    </h1>
</div>

   

        <div class="article_manage clearfix">
        <div class="article_l">
            <span class="link_categories">
            标签：
              <a href='http://www.csdn.net/tag/github' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">github</a><a href='http://www.csdn.net/tag/%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">本地仓库</a><a href='http://www.csdn.net/tag/%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93' target=_blank onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_tag']);">远程仓库</a>
            </span>
        </div>
        <div class="article_r">
            <span class="link_postdate">2017-06-04 17:27</span>
            <span class="link_view" title="阅读次数">2524人阅读</span>
            <span class="link_comments" title="评论次数"> <a href="#comments" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_pinglun'])">评论</a>(1)</span>
            <span class="link_collect tracking-ad" data-mod="popu_171"> <a href="javascript:void(0);" onclick="javascript:collectArticle('github%e6%96%b0%e5%bb%ba%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93%e5%b9%b6%e5%b0%86%e4%bb%a3%e7%a0%81%e6%8f%90%e4%ba%a4%e5%88%b0%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93','72860193');return false;" title="收藏">收藏</a></span>
             <span class="link_report"> <a href="#report" onclick="javascript:report(72860193,2);return false;" title="举报">举报</a></span>

        </div>
    </div>    <style type="text/css">        
            .embody{
                padding:10px 10px 10px;
                margin:0 -20px;
                border-bottom:solid 1px #ededed;                
            }
            .embody_b{
                margin:0 ;
                padding:10px 0;
            }
            .embody .embody_t,.embody .embody_c{
                display: inline-block;
                margin-right:10px;
            }
            .embody_t{
                font-size: 12px;
                color:#999;
            }
            .embody_c{
                font-size: 12px;
            }
            .embody_c img,.embody_c em{
                display: inline-block;
                vertical-align: middle;               
            }
             .embody_c img{               
                width:30px;
                height:30px;
            }
            .embody_c em{
                margin: 0 20px 0 10px;
                color:#333;
                font-style: normal;
            }
    </style>
    <script  type="text/javascript">
        $(function () {
            try
            {
                var lib = eval("("+$("#lib").attr("value")+")");
                var html = "";
                if (lib.err == 0) {
                    $.each(lib.data, function (i) {
                        var obj = lib.data[i];
                        //html += '<img src="' + obj.logo + '"/>' + obj.name + "&nbsp;&nbsp;";
                        html += ' <a href="' + obj.url + '" target="_blank">';
                        html += ' <img src="' + obj.logo + '">';
                        html += ' <em><b>' + obj.name + '</b></em>';
                        html += ' </a>';
                    });
                    if (html != "") {
                        setTimeout(function () {
                            $("#lib").html(html);                      
                            $("#embody").show();
                        }, 100);
                    }
                }      
            } catch (err)
            { }
            
        });
    </script>
      <div class="category clearfix">
        <div class="category_l">
           <img src="http://static.blog.csdn.net/images/category_icon.jpg">
            <span>分类：</span>
        </div>
        <div class="category_r">
                    <label  onclick="GetCategoryArticles('5653761','u010412719','top','72860193');">
                        <span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_fenlei']);">git<em>（1）</em></span>
                      <img class="arrow-down" src="http://static.blog.csdn.net/images/arrow_triangle _down.jpg" style="display:inline;">
                      <img class="arrow-up" src="http://static.blog.csdn.net/images/arrow_triangle_up.jpg" style="display:none;">
                        <div class="subItem">
                            <div class="subItem_t"><a  href="http://blog.csdn.net/u010412719/article/category/5653761"  target="_blank">作者同类文章</a><i class="J_close">X</i></div>
                            <ul class="subItem_l" id="top_5653761">                            
                            </ul>
                        </div>
                    </label>                    
        </div>
    </div>
        <div   class="bog_copyright">         
            <p  class="copyright_p" >版权声明：本文为博主原创文章，未经博主允许不得转载。</p>
        </div>

  

  
  
     


<div id="article_content" class="article_content tracking-ad" data-mod=popu_307  data-dsm = "post" >
        <div class="markdown_views"><h1 id="github新建本地仓库并将代码提交到远程仓库">github新建本地仓库并将代码提交到远程仓库</h1>

<p>假设有一个工程需要提交到github相关仓库中，以前自己将工程代码提交到远程仓库都是这么干的，如下：</p>

<p>1、在github上新建好仓库，假设仓库名为：gitRepo。</p>

<p>2、使用命令git clone git@github.com:yourgithubID/gitRepo.git 克隆到本地相应的位置。</p>

<p>3、然后将要上传的工程代码拷贝到本地的gitRepo仓库中</p>

<p>4、最后使用如下的一系列命令来将其提交到远程仓库中</p>

<pre><code>git add *
git commit -m "some info"
git push origin master
</code></pre>

<p>我个人觉得这种方法不好。原因在于上面的第三步：需要拷贝，如果你提交的工程代码永远不再改变，这样OK，但是，如果你的工程代码还需要修改修改再提交，修改再提交，则你就需要重新将修改后的工程代码拷贝到这个仓库，相当麻烦且容易出错哈。</p>

<p>自己一般写的Demo都是不再修改的，因此也就按照以上这种不太好的习惯至今。</p>

<p>今天就尝试了下如何直接在本地创建仓库并提交到远程仓库，记录一下。</p>

<p><font color="red" size="5">具体步骤如下：</font></p>

<p>前提：在github上手动创建仓库gitRepo。</p>

<p>在本地按照如下的命令进行</p>

<p>1、 mkdir gitRepo  #如果是已存在的工程项目，则直接cd到项目根目录下，不需要新建。</p>

<p>2、 cd gitRepo </p>

<p>3、 git init  #初始化本地仓库</p>

<p>4、 git add xxx  #添加要push到远程仓库的文件或文件夹</p>

<p>5、 git commit -m ‘first commit’  </p>

<p>6、 git remote add origin <a href="https://github.com/yourgithubID/gitRepo.git">https://github.com/yourgithubID/gitRepo.git</a>  #建立远程仓库</p>

<p>7、 git push -u origin master #将本地仓库push到远程仓库</p>

<p><font color="red" size="3">需要注意的是：一定要在github上手动创建仓库gitRepo，否则会出现如下的错误。</font></p>

<p><img src="http://7xknzt.com1.z0.glb.clouddn.com/git_error_v3.png" alt="" title=""></p>

<p>在实践过程中，由于在github上手动创建的仓库包括：README.md文件，二本地仓库没有此文件，则在执行git push -u origin master命令时报如下的错误。</p>

<p><img src="http://7xknzt.com1.z0.glb.clouddn.com/git_error_v1.png" alt="" title=""></p>

<p>解决方法为：</p>

<p>第一步：可以通过如下命令进行代码合并【注：pull=fetch+merge]</p>

<pre><code>git pull --rebase origin master
</code></pre>

<p>执行上面代码后可以看到本地代码库中多了README.md文件</p>

<p>第二步：此时再执行语句 git push -u origin master即可完成代码上传到github</p>

<p><img src="http://7xknzt.com1.z0.glb.clouddn.com/git_error_v4.png" alt="" title=""></p>

<p><font color="red" size="4">小结</font></p>

<p>以上就是在本地创建新的仓库并上传到远程仓库的相关命令操作。</p>

<p><font color="red">参考资料</font></p>

<p>1、<a href="http://blog.csdn.net/dijason/article/details/9114501">http://blog.csdn.net/dijason/article/details/9114501</a></p>

<p>2、<a href="http://www.jianshu.com/p/835e0a48c825">http://www.jianshu.com/p/835e0a48c825</a></p></div>
        <script  type="text/javascript">
            $(function () {
                $('pre.prettyprint code').each(function () {
                    var lines = $(this).text().split('\n').length;
                    var $numbering = $('<ul/>').addClass('pre-numbering').hide();
                    $(this).addClass('has-numbering').parent().append($numbering);
                    for (i = 1; i <= lines; i++) {
                        $numbering.append($('<li/>').text(i));
                    };
                    $numbering.fadeIn(1700);
                });
            });
        </script>
   
</div>




<!-- Baidu Button BEGIN -->




<div class="bdsharebuttonbox tracking-ad" style="float: right;" data-mod="popu_172">
<a href="#" class="bds_more" data-cmd="more" style="background-position:0 0 !important; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=d754dcc0.png) !important"></a>
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"  style="background-position:0 -52px !important"></a>
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"style="background-position:0 -104px !important"></a>
<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"style="background-position:0 -260px !important"></a>
<a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"style="background-position:0 -208px !important"></a>
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"style="background-position:0 -1612px !important" ></a>
</div>
<script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
<!-- Baidu Button END -->

   

<!--172.16.140.13-->

<!-- Baidu Button BEGIN -->
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=1536434" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->



 


        <div id="digg" ArticleId="72860193" >
            <dl id="btnDigg" class="digg digg_disable"  onclick="btndigga();">
               
                 <dt>顶</dt>
                <dd>2</dd>
            </dl>
           
              
            <dl id="btnBury" class="digg digg_disable"  onclick="btnburya();">
              
                  <dt>踩</dt>
                <dd>0</dd>               
            </dl>
            
        </div>
     <div class="tracking-ad" data-mod="popu_222"><a href="javascript:void(0);" >&nbsp;</a>   </div>
    <div class="tracking-ad" data-mod="popu_223"> <a href="javascript:void(0);" >&nbsp;</a></div>
    <script type="text/javascript">
        function btndigga() {
            $(".tracking-ad[data-mod='popu_222'] a").click();
        }
        function btnburya() {
            $(".tracking-ad[data-mod='popu_223'] a").click();
        }
            </script>

   <ul class="article_next_prev">
                <li class="prev_article"><span  onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_shangyipian']);location.href='http://blog.csdn.net/u010412719/article/details/72859569';">上一篇</span><a href="http://blog.csdn.net/u010412719/article/details/72859569" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_shangyipian'])">《Spring Web Flow 实践》</a></li>
                <li class="next_article"><span onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_xiayipian']);location.href='http://blog.csdn.net/u010412719/article/details/72878208';">下一篇</span><a href="http://blog.csdn.net/u010412719/article/details/72878208" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_xiayipian'])">《Spring JDBC 操作数据库》</a></li>
    </ul>

    <div style="clear:both; height:10px;"></div>


            <div class="similar_article"   >
                    <h4></h4>
                    <div class="similar_c"style="margin:20px 0px 0px 0px">
                        <div class="similar_c_t">
                          &nbsp;&nbsp;相关文章推荐
                        </div>
                   
                        <div class="similar_wrap tracking-ad" data-mod="popu_36"  style="max-height:250px">                       
                            <ul class="similar_list fl">    
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/w13770269691/article/details/38704941" title="git将本地仓库上传到远程仓库" strategy="BlogCommendFromBaidu_0" target="_blank">git将本地仓库上传到远程仓库</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://edu.csdn.net/huiyiCourse/series_detail/74?utm_source=blog7" title="MySQL在微信支付下的高可用运营--莫晓东" strategy="undefined" target="_blank">MySQL在微信支付下的高可用运营--莫晓东</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/huanjileaimeidan/article/details/53337112" title="【Git】git将本地代码提交到远程仓库" strategy="BlogCommendFromBaidu_1" target="_blank">【Git】git将本地代码提交到远程仓库</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://edu.csdn.net/huiyiCourse/series_detail/73?utm_source=blog7" title="容器技术在58同城的实践--姚远" strategy="undefined" target="_blank">容器技术在58同城的实践--姚远</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/xdonx/article/details/8860310" title="git将本地仓库上传到远程仓库" strategy="BlogCommendFromBaidu_2" target="_blank">git将本地仓库上传到远程仓库</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://edu.csdn.net/huiyiCourse/series_detail/73?utm_source=blog7" title="SDCC 2017之容器技术实战线上峰会" strategy="undefined" target="_blank">SDCC 2017之容器技术实战线上峰会</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/kong_21/article/details/72571854" title="Git 上传代码到远程仓库以及从远程库克隆" strategy="BlogCommendFromBaidu_3" target="_blank">Git 上传代码到远程仓库以及从远程库克隆</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://edu.csdn.net/huiyiCourse/series_detail/74?utm_source=blog7" title="SDCC 2017之数据库技术实战线上峰会" strategy="undefined" target="_blank">SDCC 2017之数据库技术实战线上峰会</a>
                                   </li>
                            </ul>
                              <ul class="similar_list fr">      
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/u013370540/article/details/51974345" title="如何将本地代码上传至git仓库" strategy="BlogCommendFromBaidu_4" target="_blank">如何将本地代码上传至git仓库</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://edu.csdn.net/huiyiCourse/series_detail/73?utm_source=blog7" title="腾讯云容器服务架构实现介绍--董晓杰" strategy="undefined" target="_blank">腾讯云容器服务架构实现介绍--董晓杰</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/xiangzhihong8/article/details/52058583" title="纯命令提交代码到git仓库（教你怎么装逼）" strategy="BlogCommendFromBaidu_5" target="_blank">纯命令提交代码到git仓库（教你怎么装逼）</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://edu.csdn.net/huiyiCourse/series_detail/74?utm_source=home7" title="微博热点事件背后的数据库运维心得--张冬洪" strategy="undefined" target="_blank">微博热点事件背后的数据库运维心得--张冬洪</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/u013370834/article/details/53084951" title="如何创建本地git仓库" strategy="BlogCommendFromBaidu_6" target="_blank">如何创建本地git仓库</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/hanhailong726188/article/details/46738929" title="教你上传本地代码到github" strategy="BlogCommendFromBaidu_7" target="_blank">教你上传本地代码到github</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/cjh5196/article/details/50736603" title="初始github（一）——本地仓库上传到远程仓库" strategy="BlogCommendFromBaidu_8" target="_blank">初始github（一）——本地仓库上传到远程仓库</a>
                                   </li>
                                   <li>
                                       <em>•</em>
                                       <a href="http://blog.csdn.net/dalinsi/article/details/53376818" title="本地代码提交至gitHub远程仓库的方法" strategy="BlogCommendFromBaidu_9" target="_blank">本地代码提交至gitHub远程仓库的方法</a>
                                   </li>
                            </ul>
                        </div>
                    </div>
                </div>   
      
</div>

     <div>
           

       
                           
            <!-- 广告位：PC端-博客内容页-banner1-960*90 --> 
           
         <!-- 广告位：PC端-博客详情页底部banner-960*90 -->
            <script>
                (function() {
                    var s = "_" + Math.random().toString(36).slice(2);
                    document.write('<div id="' + s + '"></div>');
                    (window.slotbydup=window.slotbydup || []).push({
                        id: '4770928',
                        container: s,
                        size: '960,90',
                        display: 'inlay-fix'
                    });
                })();
            </script>
    </div>

<div id="suggest"></div>
         <script  language="javascript" type='text/javascript'>     
             $(function(){
                 $.get("/u010412719/svc/GetSuggestContent/72860193",function(data){
                     $("#suggest").html(data);
                 });     
             });             
         </script>  



            
                                    
            
                                    

        <!-- 广告位开始 -->
        <!-- 广告位结束 -->


<div class="comment_class">
    <div id="comment_title" class="panel_head">
        <span class="see_comment">查看评论</span><a name="comments"></a></div>
    <div id="comment_list">
    </div>
    <div id="comment_bar">
    </div>
    <div id="comment_form">
    </div>
    <div class="announce">
        * 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场<a name="reply"></a><a name="quote"></a></div>
</div>

<script type="text/javascript">
    var fileName = '72860193';
    var commentscount = 1;
    var islock = false
</script>

    <div id="ad_bot">
    </div>
<div id="report_dialog">
</div>

<div id="d-top"  style="bottom:60px;">

        <a id="quick-reply" class="btn btn-top q-reply" title="快速回复" style="display:none;">
            <img src="http://static.blog.csdn.net/images/blog-icon-reply.png" alt="快速回复">
        </a>    
    <a id="d-top-a" class="btn btn-top backtop"  style="display: none;" title="返回顶部" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_huidaodingbu'])" style="">         
         <img src="http://static.blog.csdn.net/images/top.png" alt="TOP">
    </a>
</div>
<script type="text/javascript">
    $(function ()
    {
        $("#ad_frm_0").height("90px");
        
        setTimeout(function(){
            $("#ad_frm_2").height("200px");
        },1000);    
    });
  
</script>
<style type="text/css">
    .tag_list
    {
        background: none repeat scroll 0 0 #FFFFFF;
        border: 1px solid #D7CBC1;
        color: #000000;
        font-size: 12px;
        line-height: 20px;
        list-style: none outside none;
        margin: 10px 2% 0 1%;
        padding: 1px;
    }
    .tag_list h5
    {
        background: none repeat scroll 0 0 #E0DBD3;
        color: #47381C;
        font-size: 12px;
        height: 24px;
        line-height: 24px;
        padding: 0 5px;
        margin: 0;
    }
    .tag_list h5 a
    {
        color: #47381C;
    }
    .classify
    {
        margin: 10px 0;
        padding: 4px 12px 8px;
    }
    .classify a
    {
        margin-right: 20px;
        white-space: nowrap;
    }
</style>





<div id="pop_win" style="display:none ;position: absolute; z-index: 10000; border: 1px solid rgb(220, 220, 220); top: 222.5px; left: 630px; opacity: 1; background: none 0px 0px repeat scroll rgb(255, 255, 255);">
    
</div>
<div id="popup_mask"></div>
<style>
    #popup_mask
    {
        position: absolute;
        width: 100%;
        height: 100%;
        background: #000;
        z-index: 9999;
        left: 0px;
        top: 0px;
        opacity: 0.3;
        filter: alpha(opacity=30);
        display: none;
    }

</style>




<script type="text/javascript">
    $(function(){        
        
        setTimeout(function(){
            $(".comment_body:contains('回复')").each(function(index,item){
                var u=$(this).text().split('：')[0].toString().replace("回复","")
                var thisComment=$(this);
                if(u)
                {
                    $.getJSON("https://passport.csdn.net/get/nick?callback=?", {users: u}, function(a) {
                        if(a!=null&&a.data!=null&&a.data.length>0)
                        {
                            nick=a.data[0].n; 
                            if(u!=nick)
                            {
                                thisComment.text(thisComment.text().replace(u,nick));  
                            }
                        }       
                    });  
                }
            });         

        },200);  

        setTimeout(function(){
            $(".math").each(function(index,value){$(this).find("span").last().css("color","#fff"); })
        },5000);

        setTimeout(function(){
            $(".math").each(function(index,value){$(this).find("span").last().css("color","#fff"); })
        },10000);

        setTimeout(function(){
            $(".math").each(function(index,value){$(this).find("span").last().css("color","#fff"); })
        },15000);
        
        setTimeout(function(){
            $("a img[src='http://js.tongji.linezing.com/stats.gif']").parent().css({"position":"absolute","left":"50%"});
        },300);
    });

    function loginbox(){
        var $logpop=$("#pop_win");
        $logpop.html('<iframe src="https://passport.csdn.net/account/loginbox?service=http://static.blog.csdn.net/callback.htm" frameborder="0" height="600" width="400" scrolling="no"></iframe>');

        $('#popup_mask').css({
            opacity: 0.5,
            width: $( document ).width() + 'px',
            height:  $( document ).height() + 'px'
        });
        $('#popup_mask').css("display","block");
 
        $logpop.css( {
            top: ($( window ).height() - $logpop.height())/ 2  + $( window 
       ).scrollTop() + 'px',
            left:($( window ).width() - $logpop.width())/ 2
        } );
 
        setTimeout( function () {
            $logpop.show();
            $logpop.css( {
                opacity: 1
            } );
        }, 200 );
 
        $('#popup_mask').unbind("click");
        $('#popup_mask').bind("click", function(){
            $('#popup_mask').hide();
            var $clopop = $("#pop_win");
            $("#common_ask_div_sc").css("display","none");
            $clopop.css( {
                opacity: 0
            } );
            setTimeout( function () {
                $clopop.hide();
            }, 350 );
            return false;
        });
    }   

    var articletitle='github新建本地仓库并将代码提交到远程仓库';

</script>










                        <div class="clear">
                        </div>
                    </div>                   
                
            </div>
                   
           <div id="side">
               
    <div class="side">
<div id="panel_Profile" class="panel">
<ul class="panel_head"><span>个人资料</span></ul>
<ul class="panel_body profile">
<div id="blog_userface">
    <a href="http://my.csdn.net/u010412719" target="_blank">
    <img src="http://avatar.csdn.net/2/8/E/1_u010412719.jpg" title="访问我的空间" style="max-width:90%"/>
    </a>
    <br />
    <span><a href="http://my.csdn.net/u010412719" class="user_name" target="_blank">u010412719</a></span>
</div>
<div class="interact">

    <a href="javascript:void(0);" class="attent" id="span_add_follow" title="[加关注]"></a>

 <a href="javascript:void(0);" class="letter"  title="[发私信]" onclick="window.open('http://msg.csdn.net/letters/model?receiver=u010412719','_blank','height=350,width=700');_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_sixin'])"></a>  
</div>
<div id="blog_medal">
                         <div class="ico_expert" title="CSDN博客准专家"  onclick="javascript:location='http://blog.csdn.net/experts/rule.html'" style=" cursor:pointer;width:54px;height:60px;background:url('http://c.csdnimg.cn/jifen/images/xunzhang/xunzhang/bokezhunzhuanjiamiddle.png') no-repeat" ></div>
                <div id="bms_box">
                                            <a  target="_blank">
                                                    <img src="http://c.csdnimg.cn/jifen/images/xunzhang/xunzhang/zhuanlandaren.png" onmouseover="m_over_m(this,2)" onmouseout="m_out_m()" alt="5" >
                                            </a>
                                            <a  target="_blank">
                                                    <img src="http://c.csdnimg.cn/jifen/images/xunzhang/xunzhang/chizhiyiheng.png" onmouseover="m_over_m(this,4)" onmouseout="m_out_m()" alt="1" >
                                            </a>
               </div>
</div>
<ul id="blog_rank">
    <li>访问：<span>578069次</span></li>
    <li>积分：<span>11730</span> </li>    
    <li >等级： <span style="position:relative;display:inline-block;z-index:1" >
            <img src="http://c.csdnimg.cn/jifen/images/xunzhang/jianzhang/blog7.png" alt="" style="vertical-align: middle;" id="leveImg">
            <div id="smallTittle" style=" position: absolute;  left: -24px;  top: 25px;  text-align: center;  width: 101px;  height: 32px;  background-color: #fff;  line-height: 32px;  border: 2px #DDDDDD solid;  box-shadow: 0px 2px 2px rgba (0,0,0,0.1);  display: none;   z-index: 999;">
            <div style="left: 42%;  top: -8px;  position: absolute;  width: 0;  height: 0;  border-left: 10px solid transparent;  border-right: 10px solid transparent;  border-bottom: 8px solid #EAEAEA;"></div>
            积分：11730 </div>
        </span>  </li>
    <li>排名：<span>第1456名</span></li>
</ul>
<ul id="blog_statistics">
    <li>原创：<span>605篇</span></li>
    <li>转载：<span>14篇</span></li>
    <li>译文：<span>0篇</span></li>
    <li>评论：<span>100条</span></li>
</ul>
</ul>
</div>




<div id="custom_column_55824047" class="panel">
<ul class="panel_head"><span>联系方式</span></ul>
<ul class="panel_body">

<font color="red" size="4">有问题欢迎探讨咨询哈 <br>
qq号就不留了哈 <br>
欢迎留言</font>

</ul>
</div><div class="panel" id="panel_Search">
    <ul class="panel_head"><span>文章搜索</span></ul>
    <ul class="panel_body" class="form_search">
        <form id="frmSearch" class="form_search csdn-tracking-statistics" target="_blank"  data-mod="popu_306">
        <span><input id="inputSearch" type="text" class="blogsearch" title="请输入关键字" /></span>
        <input id="btnSubmit" type="button" value="搜索" title="search in blog" />
        <input type="hidden" name="q" id="inputQ" />
        <input type="hidden" name="t" value="blog" />
        <a id="btnSearchBlog" target="_blank"></a>
        </form>
    </ul>
</div>

<script type="text/javascript">

   
    $(function () {
        $("#btnSubmit").unbind("click");
        $("#btnSubmit").click(function () {           
            search();
        });

        $("#frmSearch").submit(function () {           
            search();
            return false;
        });

        function search()
        {
            if ($("#inputSearch").val() == "") {               
                alert("请录入搜索关键词！");                         
                return false;
            }
            //var url = "http://so.csdn.net/so/search/s.do?q=" + encodeURIComponent($("#inputSearch").val()) + "&u=" + username + "&t=blog";           
            var url = "https://www.baidu.com/s?wd=" + encodeURIComponent($("#inputSearch").val()) + "%20site%3Ablog.csdn.net"
            var url = "/" + username + "?q=" + encodeURIComponent($("#inputSearch").val());
            window.location.href = url;
        }   
    });
</script><div id="panel_Category" class="panel">
    <ul class="panel_head"><span>博客专栏</span></ul>
    <ul class="panel_body" id="sp_column">
    <table cellpadding="0" cellspacing="0"><tr>
    <td style="padding:10px 10px 0 0;">
    <a href="http://blog.csdn.net/column/details/hibernatewrh.html" target="_blank"><img src="http://img.blog.csdn.net/20160502181637894" style="width:75px;height:75px;" /></a>
    </td>
    <td style="padding:10px 0; vertical-align:top;">
    <a href="http://blog.csdn.net/column/details/hibernatewrh.html" target="_blank">Hibernate学习笔记</a>
    <p>文章：12篇</p>
    <span>阅读：27665</span>
    </td>
    </tr></table>
    <table cellpadding="0" cellspacing="0"><tr>
    <td style="padding:10px 10px 0 0;">
    <a href="http://blog.csdn.net/column/details/algorithm-wu.html" target="_blank"><img src="http://img.blog.csdn.net/20160425201415305" style="width:75px;height:75px;" /></a>
    </td>
    <td style="padding:10px 0; vertical-align:top;">
    <a href="http://blog.csdn.net/column/details/algorithm-wu.html" target="_blank">数据结构与算法分析</a>
    <p>文章：11篇</p>
    <span>阅读：11465</span>
    </td>
    </tr></table>
    <table cellpadding="0" cellspacing="0"><tr>
    <td style="padding:10px 10px 0 0;">
    <a href="http://blog.csdn.net/column/details/leetcodewu.html" target="_blank"><img src="http://img.blog.csdn.net/20160425200434211" style="width:75px;height:75px;" /></a>
    </td>
    <td style="padding:10px 0; vertical-align:top;">
    <a href="http://blog.csdn.net/column/details/leetcodewu.html" target="_blank">leetcode</a>
    <p>文章：16篇</p>
    <span>阅读：6760</span>
    </td>
    </tr></table>
    <table cellpadding="0" cellspacing="0"><tr>
    <td style="padding:10px 10px 0 0;">
    <a href="http://blog.csdn.net/column/details/struts2wu.html" target="_blank"><img src="http://img.blog.csdn.net/20160425195338408" style="width:75px;height:75px;" /></a>
    </td>
    <td style="padding:10px 0; vertical-align:top;">
    <a href="http://blog.csdn.net/column/details/struts2wu.html" target="_blank">struts2学习笔记</a>
    <p>文章：8篇</p>
    <span>阅读：8764</span>
    </td>
    </tr></table>
    <table cellpadding="0" cellspacing="0"><tr>
    <td style="padding:10px 10px 0 0;">
    <a href="http://blog.csdn.net/column/details/pythonwu.html" target="_blank"><img src="http://img.blog.csdn.net/20160425194626600" style="width:75px;height:75px;" /></a>
    </td>
    <td style="padding:10px 0; vertical-align:top;">
    <a href="http://blog.csdn.net/column/details/pythonwu.html" target="_blank">Python爬虫实战</a>
    <p>文章：6篇</p>
    <span>阅读：13849</span>
    </td>
    </tr></table>
    <table cellpadding="0" cellspacing="0"><tr>
    <td style="padding:10px 10px 0 0;">
    <a href="http://blog.csdn.net/column/details/mysqlwu.html" target="_blank"><img src="http://img.blog.csdn.net/20160423205556121" style="width:75px;height:75px;" /></a>
    </td>
    <td style="padding:10px 0; vertical-align:top;">
    <a href="http://blog.csdn.net/column/details/mysqlwu.html" target="_blank">MySQL必知必会学习笔记</a>
    <p>文章：22篇</p>
    <span>阅读：22691</span>
    </td>
    </tr></table>
    </ul>
</div><div id="panel_Category" class="panel">
<ul class="panel_head"><span>文章分类</span></ul>
<ul class="panel_body">    
                 <li>
                    <a href="/u010412719/article/category/5600319" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">个人阶段性总结</a><span>(11)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5673313" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">深入理解java虚拟</a><span>(8)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5892527" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">设计模式</a><span>(17)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6159934" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">JAVA源码分析</a><span>(51)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5914651" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">leetCode</a><span>(205)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/3788015" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">java算法</a><span>(13)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5764761" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">剑指Offer</a><span>(58)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5583253" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">java</a><span>(37)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5634135" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">java编程思想学习</a><span>(2)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5600749" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">编程之美</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5596625" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">面试题</a><span>(13)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5619553" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">测试题</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5621559" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">机器学习</a><span>(4)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5634161" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">python</a><span>(26)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5653761" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">git</a><span>(2)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5683491" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">错误</a><span>(4)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5712107" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">MFC</a><span>(8)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5762777" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">android</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5343927" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">matlab</a><span>(5)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5779403" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">c</a><span>(17)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5911869" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">程序员面试金典</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5622617" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">电影</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5942577" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">markdown</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6191613" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">struts2</a><span>(11)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5952463" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">Django</a><span>(5)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/5970475" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">网站</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6111175" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">其它</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6152060" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">MySQL</a><span>(23)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6172066" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">simulink</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6203979" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">Hibernate</a><span>(12)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6242258" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">spring</a><span>(13)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6249945" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">javascript</a><span>(22)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6261831" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">C#</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6275379" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">opencv</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6282979" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">winpcap</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6356963" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">分布式</a><span>(8)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6357965" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">测试</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6476645" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">linux-shel</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6486066" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">guava</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6747878" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">maven</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6749211" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">Intellij</a><span>(2)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6840967" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">SpringMVC</a><span>(7)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6845978" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">SpringBoot</a><span>(9)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/6980941" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">mongodb</a><span>(2)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/7115482" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">sublime</a><span>(1)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/7117801" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">前端</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/7145344" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">mybatis</a><span>(3)</span>
                </li>
                 <li>
                    <a href="/u010412719/article/category/7175779" onclick="_gaq.push(['_trackEvent','function', 'onclick', 'blog_articles_wenzhangfenlei']); ">netty源码分析</a><span>(14)</span>
                </li>
</ul>
</div><div id="panel_Archive" class="panel">
<ul class="panel_head"><span>文章存档</span></ul>
<ul class="panel_body">
<div id="archive_list">
<!--归档统计-->
<li><a href="/u010412719/article/month/2017/11">2017年11月</a><span>(4)</span></li><li><a href="/u010412719/article/month/2017/10">2017年10月</a><span>(9)</span></li><li><a href="/u010412719/article/month/2017/09">2017年09月</a><span>(9)</span></li><li><a href="/u010412719/article/month/2017/08">2017年08月</a><span>(4)</span></li><li><a href="/u010412719/article/month/2017/07">2017年07月</a><span>(1)</span></li><li><a href="/u010412719/article/month/2017/06">2017年06月</a><span>(8)</span></li><li><a href="/u010412719/article/month/2017/05">2017年05月</a><span>(6)</span></li><li><a href="/u010412719/article/month/2017/04">2017年04月</a><span>(13)</span></li><li><a href="/u010412719/article/month/2017/02">2017年02月</a><span>(3)</span></li><li><a href="/u010412719/article/month/2017/01">2017年01月</a><span>(5)</span></li><li><a href="/u010412719/article/month/2016/12">2016年12月</a><span>(7)</span></li><li><a href="/u010412719/article/month/2016/11">2016年11月</a><span>(3)</span></li><li><a href="/u010412719/article/month/2016/10">2016年10月</a><span>(14)</span></li><li><a href="/u010412719/article/month/2016/09">2016年09月</a><span>(4)</span></li><li><a href="/u010412719/article/month/2016/08">2016年08月</a><span>(31)</span></li><li><a href="/u010412719/article/month/2016/07">2016年07月</a><span>(47)</span></li><li><a href="/u010412719/article/month/2016/06">2016年06月</a><span>(24)</span></li><li><a href="/u010412719/article/month/2016/05">2016年05月</a><span>(26)</span></li><li><a href="/u010412719/article/month/2016/04">2016年04月</a><span>(50)</span></li><li><a href="/u010412719/article/month/2016/03">2016年03月</a><span>(57)</span></li><li><a href="/u010412719/article/month/2016/02">2016年02月</a><span>(23)</span></li><li><a href="/u010412719/article/month/2016/01">2016年01月</a><span>(8)</span></li><li><a href="/u010412719/article/month/2015/12">2015年12月</a><span>(18)</span></li><li><a href="/u010412719/article/month/2015/11">2015年11月</a><span>(77)</span></li><li><a href="/u010412719/article/month/2015/10">2015年10月</a><span>(66)</span></li><li><a href="/u010412719/article/month/2015/09">2015年09月</a><span>(24)</span></li><li><a href="/u010412719/article/month/2015/08">2015年08月</a><span>(16)</span></li><li><a href="/u010412719/article/month/2015/07">2015年07月</a><span>(33)</span></li><li><a href="/u010412719/article/month/2015/06">2015年06月</a><span>(24)</span></li><li><a href="/u010412719/article/month/2015/05">2015年05月</a><span>(5)</span></li>
</div>
</ul>
</div>
<div id="hotarticls" class="panel tracking-ad" data-mod="popu_340">
<ul class="panel_head">
    <span>       
阅读排行    </span>
</ul>

<ul class="panel_body itemlist">
<li>
<a href="/u010412719/article/details/47089883" title="如何调用另一个python文件中的代码">如何调用另一个python文件中的代码</a><span>(22581)</span>
</li>
<li>
<a href="/u010412719/article/details/47089473" title="python中出现IndentationError:unindent does not match any outer indentation level错误">python中出现IndentationError:unindent does not match any outer indentation level错误</a><span>(22245)</span>
</li>
<li>
<a href="/u010412719/article/details/46794051" title="支持向量机（SVM）算法的matlab的实现">支持向量机（SVM）算法的matlab的实现</a><span>(16892)</span>
</li>
<li>
<a href="/u010412719/article/details/51283926" title="《Hibernate学习笔记五》Session 的update方法详解">《Hibernate学习笔记五》Session 的update方法详解</a><span>(10836)</span>
</li>
<li>
<a href="/u010412719/article/details/47088095" title="NameError:name &#39;xrange&#39; is not defined">NameError:name &#39;xrange&#39; is not defined</a><span>(10518)</span>
</li>
<li>
<a href="/u010412719/article/details/69788227" title="SpringBoot 中常用注解@PathVaribale/@RequestParam/@GetMapping介绍">SpringBoot 中常用注解@PathVaribale/@RequestParam/@GetMapping介绍</a><span>(9044)</span>
</li>
<li>
<a href="/u010412719/article/details/50199047" title="《python爬虫实战》：爬取贴吧上的帖子">《python爬虫实战》：爬取贴吧上的帖子</a><span>(8209)</span>
</li>
<li>
<a href="/u010412719/article/details/46726625" title="机器学习中分类与聚类的本质区别">机器学习中分类与聚类的本质区别</a><span>(7655)</span>
</li>
<li>
<a href="/u010412719/article/details/69710480" title="SpringBoot 中常用注解@Controller/@RestController/@RequestMapping介绍">SpringBoot 中常用注解@Controller/@RestController/@RequestMapping介绍</a><span>(6147)</span>
</li>
<li>
<a href="/u010412719/article/details/52145145" title="《Java源码分析》：ConcurrentHashMap  JDK1.8">《Java源码分析》：ConcurrentHashMap  JDK1.8</a><span>(5687)</span>
</li>
</ul>
</div>
<div id="hotarticls2" class="panel tracking-ad" data-mod="popu_341"">
<ul class="panel_head"><span>评论排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="/u010412719/article/details/52825902" title="《面筋：拿到美团点评和去哪儿网的offer》">《面筋：拿到美团点评和去哪儿网的offer》</a><span>(5)</span>
</li>
<li>
<a href="/u010412719/article/details/46582773" title="研一总结">研一总结</a><span>(5)</span>
</li>
<li>
<a href="/u010412719/article/details/46554587" title="2015华为校园招聘机试题&lt;一&gt;">2015华为校园招聘机试题&lt;一&gt;</a><span>(4)</span>
</li>
<li>
<a href="/u010412719/article/details/46555741" title="2015届华为校园招聘机试题&lt;第三题等式变换&gt;">2015届华为校园招聘机试题&lt;第三题等式变换&gt;</a><span>(4)</span>
</li>
<li>
<a href="/u010412719/article/details/56293265" title="《2017年2月份总结与反思》">《2017年2月份总结与反思》</a><span>(4)</span>
</li>
<li>
<a href="/u010412719/article/details/52145145" title="《Java源码分析》：ConcurrentHashMap  JDK1.8">《Java源码分析》：ConcurrentHashMap  JDK1.8</a><span>(3)</span>
</li>
<li>
<a href="/u010412719/article/details/51018529" title="《MySQL必知必会学习笔记》：子查询">《MySQL必知必会学习笔记》：子查询</a><span>(3)</span>
</li>
<li>
<a href="/u010412719/article/details/48604433" title="最近状况的小结">最近状况的小结</a><span>(3)</span>
</li>
<li>
<a href="/u010412719/article/details/48688755" title="《2016展讯校招软开java笔试题》">《2016展讯校招软开java笔试题》</a><span>(2)</span>
</li>
<li>
<a href="/u010412719/article/details/46357969" title="贪婪算法">贪婪算法</a><span>(2)</span>
</li>
</ul>
</div>
<div id="newcomments" class="panel">
<ul class="panel_head"><span>最新评论</span></ul>
<ul class="panel_body itemlist">
    <li>
   
         <a href="/u010412719/article/details/70037225#comments">《在macbook上修改MySQL的初始密码》</a>
    <p style="margin:0px;"><a href="/u010412719" class="user_name">u010412719</a>:
修改初始密码的另一种方法，步骤如下：1）在终端，输入命令：open ~/.bash_profile打...
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/52145145#comments">《Java源码分析》：ConcurrentHashMap  JDK1.8</a>
    <p style="margin:0px;"><a href="/Yuanyuanasdf" class="user_name">Yuanyuanasdf</a>:
initTable() 方法 if ((sc = sizeCtl) &amp;lt; 0)//如果sizeC...
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/56293265#comments">《2017年2月份总结与反思》</a>
    <p style="margin:0px;"><a href="/wxyjuly" class="user_name">wxyjuly</a>:
目测楼主是沙河通信学院的....
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/56293265#comments">《Java源码分析》：ConcurrentHashMap  JDK1.8</a>
    <p style="margin:0px;"><a href="/Yuanyuanasdf" class="user_name">Yuanyuanasdf</a>:
好文！
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/46746343#comments">贪吃蛇小游戏java实现代码分析</a>
    <p style="margin:0px;"><a href="/weixin_41069526" class="user_name">weixin_41069526</a>:
你好我想问一下主类该怎么写
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/71642974#comments">使用JavaConfig来配置Spring MVC中的DispatcherServlet</a>
    <p style="margin:0px;"><a href="/kingtouch1459" class="user_name">kingtouch1459</a>:
知道了，有个方法getServletName()可以修改名字的
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/71642974#comments">使用JavaConfig来配置Spring MVC中的DispatcherServlet</a>
    <p style="margin:0px;"><a href="/kingtouch1459" class="user_name">kingtouch1459</a>:
有个问题：这种方式怎么给servlet取名字，配置多个的话报错名称重复
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/47982123#comments">VC++和Matlab混合编程（在VC中调用将.m文件生成的DLL）</a>
    <p style="margin:0px;"><a href="/magoyang" class="user_name">magoyang</a>:
你好，能问下你这个参数路径是怎么传的，我现在那个路径传不进去，MATLAB识别不了，挺着急的，请尽快...
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/46290845#comments">快排（QuickSort）的java语言的实现</a>
    <p style="margin:0px;"><a href="/sinat_34693148" class="user_name">sinat_34693148</a>:
很有帮助，谢老哥
    </p>
    </li>
    <li>
   
         <a href="/u010412719/article/details/52825902#comments">《面筋：拿到美团点评和去哪儿网的offer》</a>
    <p style="margin:0px;"><a href="/weixin_36692820" class="user_name">weixin_36692820</a>:
在网上搜贪吃蛇实现的过程，偶然看见博主的文章，感觉很亲切。作为一名研二的通信渣渣，博主比我优秀太多了...
    </p>
    </li>
</ul>
</div>
    </div>
    <div class="clear">
    </div>

                   <div class="tracking-ad" data-view="true" data-mod="ad_popu_189" data-mtp="63" data-order="40" data-con="ad_content_1259" style="width: 250px; height: 500px;">
                        <div id="nav_show_top_stop" style="width: 250px;height: 500px;z-index:1000"><div id="cpro_u2734133">
                             <!-- 投放代码 -->
                             
                            <!-- 请置于所有广告位代码之前 -->
                            <script src="http://dup.baidustatic.com/js/ds.js"></script>

                            <!-- 广告位：PC端-博客详情页-左侧button1-250*250 -->
                                    <script>
                                        (function () {
                                            var s = "_" + Math.random().toString(36).slice(2);
                                            document.write('<div id="' + s + '"></div>');
                                            (window.slotbydup = window.slotbydup || []).push({
                                                id: '4740887',
                                                container: s,
                                                size: '250,250',
                                                display: 'inlay-fix'
                                            });
                                        })();
                                    </script>

                                                                                                    </div>
                            <div id="cpro_u3031286">
                                 <!-- 投放代码 -->
                               
                                <!-- 请置于所有广告位代码之前 -->
                                <script src="http://dup.baidustatic.com/js/ds.js"></script>

                                <!-- 广告位：PC端-博客详情页-左侧Button2-250*250 -->
                                <script>
                                    (function () {
                                        var s = "_" + Math.random().toString(36).slice(2);
                                        document.write('<div id="' + s + '"></div>');
                                        (window.slotbydup = window.slotbydup || []).push({
                                            id: '4740890',
                                            container: s,
                                            size: '250,250',
                                            display: 'inlay-fix'
                                        });
                                    })();
                                </script>



                            </div></div>
                   </div>
                    <script>

                        setTimeout(function () {
                            var naviga_offsetTop = 0; function naviga_stay_top() {
                                var scrollTop = jQuery(document).scrollTop();
                                if (scrollTop > naviga_offsetTop) {
                                    jQuery("#nav_show_top_stop").css({ "position": "fixed" });
                                    jQuery("#nav_show_top_stop").css({ "top": "0px" });
                                } else { jQuery("#nav_show_top_stop").css({ "position": "fixed" }); jQuery("#nav_show_top_stop").css({ "top": naviga_offsetTop - scrollTop + "px" }); }
                            }
                            function onload_function() {
                                naviga_offsetTop = jQuery("#nav_show_top_stop").position().top;
                                jQuery(window).bind("scroll", naviga_stay_top); jQuery(window).bind("mousewheel", naviga_stay_top);
                                jQuery(document).bind("scroll", naviga_stay_top); jQuery(document).bind("mousewheel", naviga_stay_top);
                            } jQuery(document).ready(onload_function);
                        }, 200);

                    </script>

           </div>   
            <div class="clear">
            </div>
        </div>

        












<script type="text/javascript">
    $(function () {
        function __get_code_toolbar(snippet_id) {
            return $("<span class='tracking-ad' data-mod='popu_167'><a href='https://code.csdn.net/snippets/"
                    + snippet_id
                    + "' target='_blank' title='在CODE上查看代码片'  style='text-indent:0;'><img src='https://code.csdn.net/assets/CODE_ico.png' width=12 height=12 alt='在CODE上查看代码片' style='position:relative;top:1px;left:2px;'/></a></span>"
                    + "<span class='tracking-ad' data-mod='popu_170'><a href='https://code.csdn.net/snippets/"
                    + snippet_id
                    + "/fork' target='_blank' title='派生到我的代码片' style='text-indent:0;'><img src='https://code.csdn.net/assets/ico_fork.svg' width=12 height=12 alt='派生到我的代码片' style='position:relative;top:2px;left:2px;'/></a></span>");
        }
        
        $("[code_snippet_id]").each(function () {
            __s_id = $(this).attr("code_snippet_id");
            if (__s_id != null && __s_id != "" && __s_id != 0 && parseInt(__s_id) > 70020) {
                __code_tool = __get_code_toolbar(__s_id);
                $(this).prev().find(".tools").append(__code_tool);
            }
        });

        $(".bar").show();
    });
</script>





    </div>
     


       <script type="text/javascript" src="http://static.blog.csdn.net/public/res/bower-libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>   
    
    <script src="http://static.blog.csdn.net/scripts/csdn_blog_detail.min.js?v2017.041" type="text/javascript"></script>
        
    <script type="text/javascript" src="http://csdnimg.cn/blog/csdn_public_blog_detail.min.js?20171208115"></script>

    <script type="text/javascript" src="http://medal.blog.csdn.net/showblogmedal.ashx?blogid=5057865"></script>


  <div id="a52b5334d" style="width: 1px; height: 1px; display: none;">
                    <script id="adJs52b5334"></script>
                    <script>document.getElementById("adJs52b5334").src = "http://ads.csdn.net/js/opt/52b5334.js?t=" + Math.random();</script>
   </div>
          
    <div class="pop_CA_cover"  style="display:none"></div>
    <div class="pop pop_CA"  style="display:none">
          <div class="CA_header">
            收藏助手
            <span class="cancel_icon"  id="fapancle"  onclick="$('.pop_CA').hide();$('.pop_CA_cover').hide();"></span>
          </div>
          <iframe src="" id="fa" frameborder="0" width="100%" height="360"  scrolling="no" ></iframe>
    </div>


        <script type="text/javascript">

            $(function () {
                var fromjs = $("#fromjs");
                if (fromjs.length > 0) {
                    $("#fromjs .markdown_views pre").addClass("prettyprint");
                    prettyPrint();

                    $('pre.prettyprint code').each(function () {
                        var lines = $(this).text().split('\n').length;
                        var $numbering = $('<ul/>').addClass('pre-numbering').hide();
                        $(this).addClass('has-numbering').parent().append($numbering);
                        for (i = 1; i <= lines; i++) {
                            $numbering.append($('<li/>').text(i));
                        };
                        $numbering.fadeIn(1700);
                    });

                    $('.pre-numbering li').css("color", "#999");
                }
            });

            $(".markdown_views a[target!='_blank']").attr("target", "_blank");

            //$(".toc a[target='_blank']").attr("target", "");

            setTimeout(function () {
                $(".toc a[target='_blank']").attr("target", "");
            }, 500);

        </script>

</body>
</html>   
